package com.zoroki.hmusic.service;

import com.zoroki.hmusic.entity.Favorite;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zoroki.hmusic.entity.Playlist;
import com.zoroki.hmusic.entity.Song;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zoroki
 * @since 2023-05-10
 */
public interface IFavoriteService extends IService<Favorite> {
    int addFavorite(Integer userId);

    Favorite findFavoriteByUserId(int userId);

    List<Song> findFavoriteSongByUserId(int userId);
    List<Playlist> findFavoritePlaylistByUserId(int userId);

    Favorite getFavoriteByUserId(int userId);

    int deleteFavorite(int userId);
}
